package com.cqhilink.iot.jobstandardmanagement.services.timingTaskService.system;

import com.cqhilink.api.common.utils.date.DateUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @Author 卢曼成
 * @Description 系统定时任务执行类
 * @CreateDateTime 2017-04-13 15:58
 **/
public class SystemTimingTask implements Job{

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        Date date = new Date();
        try {
            System.out.println("定时任务执行时间:"+ DateUtil.DateToString(date,"yyyy-MM-dd HH:mm:ss"));
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
